<template>
	<view class="mywrap">
		<view class="xy-com">
			<rich-text :nodes="peizhi"></rich-text>
		</view>
	</view>
</template>

<script>
	import loginApi from "@/api/login"
	export default {
		data() {
			return {
				peizhi: '',
			}
		},
		onLoad(options) {
			this.getInfo(options.type)
			uni.setNavigationBarTitle({
				title: options.name
			})
		},
		methods: {
			async getInfo(type) {
				let res = await loginApi.getNotice({name: type})
        if (res.code === 1) {
          this.peizhi = res.data
          console.log();
        } else {
          this.$common.msgShow(res.msg);
        }
			}
		}
	}
</script>

<style>
	.mywrap {
		position: relative;
		min-height: 100vh;
		background-color: #ffffff;
	}

	.xy-com {
		padding: 50rpx;
		border-top: 14rpx solid #fafafa;
	}
</style>
